from django.conf.urls import url

from DjangoCache import views

urlpatterns = [
    url(r'^news/$', views.news, name='news'),

    url(r'^news_other/$', views.news_other, name='news_other'),

    url(r'home/$', views.home, name='home'),

    url(r'getphone/$', views.get_phone, name='get_home'),

    url(r'getticket/$', views.get_ticket, name='get_ticket'),

    url(r'search/$', views.search, name='search'),

    url(r'calc/$', views.calc, name='calc'),

    url(r'addstudents/$', views.add_student, name='add_student'),

    url(r'getstudents/$', views.get_student, name='get_student'),

    url(r'getstudentswithpage/$', views.get_students_with_page, name='get_students_with_page'),

    # 生成验证码
    url(r'getcode/$', views.get_code, name='get_code'),
    # 有验证码的登录
    url(r'loginwithverifycode/$',views.login_with_verify_code,name='login_with_verify_code'),
]
